package com.neighbor.neighborhoodadmin.pojo;

import java.util.List;

// 创建一个分页结果封装类
public class PageResult<T> {
    private List<T> data;      // 当前页数据
    private Integer total;     // 总条数

    // 构造方法
    public PageResult(List<T> data, Integer total) {
        this.data = data;
        this.total = total;
    }

    // getter和setter
    public List<T> getData() { return data; }
    public void setData(List<T> data) { this.data = data; }
    public Integer getTotal() { return total; }
    public void setTotal(Integer total) { this.total = total; }
}
